<template>
  <div class="hello">
  <van-nav-bar
  :title=msg
  left-text=" "
  left-arrow
  class="bgcolor"
  @click-left="onClickLeft"
/>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
export default defineComponent({
   setup() {
    const onClickLeft = () => history.back();
    return {
      onClickLeft,
    };
  },
  // name: '',
  props: {
    msg: String,
  },
});
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="less">
.hello{
	width: 100%;
	height: 2rem;
  margin-bottom: 1rem;
  .bgcolor{

  }
	
}
</style>
